package com.example.demo.service.impl;

import com.example.demo.entity.Student;
import com.example.demo.mapper.StudentMapper;
import com.example.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServicelmpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public int save(Student student) {
        return studentMapper.save(student);
    }

    @Override
    public int delete(int sId) {
        return studentMapper.delete(sId);
    }

    @Override
    public int update(Student student) {
        return studentMapper.update(student);
    }

    @Override
    public List<Student> select() {
        return studentMapper.select();
    }
}
